package com.labichaoka.chaoka.ui.fetch;

import com.labichaoka.chaoka.entity.FetchMoneyRequest;
import com.labichaoka.chaoka.entity.FetchMoneyResponse;
import com.labichaoka.chaoka.entity.IsOpenAcountRequest;
import com.labichaoka.chaoka.entity.IsOpenAcountResponse;
import com.labichaoka.chaoka.entity.LimitStatusResponse;

/**
 * Created by ruan on 2018/8/13.
 */

public interface FetchMoneyInteractor {
    interface OnFinishedListener{
        void onSuccessed(LimitStatusResponse response);
        void onFailed();

        void onCommitSuccessed(FetchMoneyResponse response);
        void onCommitFailed();

        void onIsOpenAcountSucc(IsOpenAcountResponse response);
        void onIsOpenAcountFailed();
    }

    void getQuotaInfo(OnFinishedListener listener);

    void commit(FetchMoneyRequest request,OnFinishedListener listener );

    void isOpenAcount(IsOpenAcountRequest request,OnFinishedListener listener);
}
